#include "HttpServer.hpp"
#include <memory>
#include "Log.hpp"

using namespace std;

int main(int argc, char* argv[])
{
    if (argc != 2)
    {
        exit(1);
    }
    uint16_t port = std::stoi(argv[1]);
    // HttpServer* svr = new HttpServer();
    // lg.Enable(Classfile);
    std::unique_ptr<HttpServer> svr(new HttpServer(port));
    // daemon(1, 1);     
    svr->Start();

    return 0;
}